<?PHP
$id = $_GET['id_user'];
include "url.php";
include_once "ini.php";
dbconnect();

$sql = "SELECT * FROM users WHERE id_user = '".$id."'";
$requete = mysql_query($sql);
if (!$requete)
{
    echo "SQL error : ", $sql;
    exit ;
}
else
{

    while ($users = mysql_fetch_assoc($requete))
    {
        $json = $users;
    }

    echo json_encode($json);

}
dbclose();
?>
